import Vue from 'vue'
import App from './App'
import { addPrototype } from './utils/vuePrototype.js';
import * as filters from './utils/filter.js';

// Vue原型挂在方法
addPrototype(Vue);

// 导入VueX
import store from '@/store/index'

Vue.config.productionTip = false

Object.keys(filters).forEach(key => { // 过滤器
  Vue.filter(key, filters[key]);
});

App.mpType = 'app'

const app = new Vue({
  store,
  ...App
})
app.$mount()
